ColorManagement Xojo Plugin

ICCColorProfile.CMYKColorToRGBColor Method

Converts a single CMYK color to a RGB color using color profiles.

shared CMYKColorToRGBColor(
   c as UInt8,
   m as UInt8,
   y as UInt8,
   k as UInt8,
   cmykProfile as ICCColorProfile,
   rbbValue as Color,
   rgbProfile as ICCColorProfile) as ICCColorProfile.ErrorValues

Parameters

c
The cyan value to be converted (0 - 255)
m
The magenta value to be converted (0 - 255)
y
The yellow value to be converted (0 - 255)
k
The key value to be converted (0 - 255)
cmykProfile
The CMYK color profile. (This has to be color profile with CMYK color space) If nil or incorrect color space is supplied then crude conversion is done.
rbbValue
Returns the RGB value in this ByRef parameter.
rgbProfile
The rgb color profile. (This has to be color profile with RGB color space). If nil or incorrect color space is supplied then crude conversion is done.

Returns

ICCColorProfile.ErrorValues
Error code or no Error if everything was all right.

Remarks

You should not use this to convert colors in image one by one.

If profiles are nil or have incorrect color space then error code is returned.

If error code was returned then Crude conversion was done instead of color profile conversion.

See Also

ICCColorProfile Class